#!/bin/bash
# Q: how to execute this shell script?
# A: $ source init_dev.sh
root=~/dev

echo The root dir: $root

# Create directories
mkdir -p $root
mkdir -p $root/bin
mkdir -p $root/include
mkdir -p $root/lib

# Add execute path
export PATH=$root/bin:$PATH

# Add C Cpp include path
export C_INCLUDE_PATH=$root/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=$root/include:$CPLUS_INCLUDE_PATH

# Add library path compiler use for compilation
export LIBRARY_PATH=$root/lib:$LIBRARY_PATH


# FINISH #
echo --- Init dev env finish ---

